[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
V_ENCRYPT()
Encrypt a Clipper string variable
-------------------------------------------------------------------------------
Syntax
V_ENCRYPT( <cString> ) -> cGobbleTgook
Arguments
<cString> is any valid Clipper character string.
Returns
V_ENCRYPT() returns an ecrypted string with the same length as
the original.
Description
V_ENCRYPT() encrypts a Clipper string based on the current key setting
(see V_SETKEY()). The string can later be V_DECRYPT()ed by using the
same V_SETKEY() setting.
V_ENCRYPT() encrypts a Clipper string so that it is not human readable.
The encryption algorithm has not been designed to any particular
specification, however, as the author of the algorithm, I would not
want to be faced with the task of decrypting a string without the
<key> with which it was encrypted (see V_SETKEY()).
Examples
LOCAL cSecure, cOriginal
// Set the key to my dog's name.
V_SETKEY( "Tally" )
// Encrypt a character string. Store the result in <cSecure>.
cSecure = V_ENCRYPT( "Just try to decode <cSecure> without my dog." )
// Later, decode the secured string with the help of my golden.
// The call to V_SETKEY() is redundant because the program has not
// terminated and it has not been set to a different V_SETKEY().
V_SETKEY( "Tally" )
cOriginal = V_DECRYPT( cSecure )
See Also:
V_SETKEY()
V_DECRYPT()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson